package com.example.core.mapper;


import com.example.core.arch.annotation.AutoSetter;
import com.example.core.entity.BaseEntity;
import com.example.core.so.BaseSo;

import java.util.List;

public interface BaseMapper<T> {

    @AutoSetter
    int insert(T entity);

    List<T> listBySo(BaseSo so);

    T getBySo(BaseSo so);

    int update(BaseEntity entity);
}
